python multi-branch statement